<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>雇主其它成本明细管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
            $("#btnExport").click(function(){
                top.$.jBox.confirm("确认要导出雇主其它成本明细吗？","系统提示",function(v,h,f){
                    if(v=="ok"){
                        $("#searchForm").attr("action","${ctx}//costbreakdowm/employerCostBreakdown/export");
                        $("#searchForm").submit();
                    }
                },{buttonsFocus:1});
                top.$('.jbox-body .jbox-icon').css('top','55px');
            });
            $("#btnImport").click(function(){
                $.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true},
                    bottomText:"导入文件不能超过5M，仅允许导入“xls”或“xlsx”格式文件！"});
            });
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/costbreakdowm/employerCostBreakdown/">雇主其它成本明细列表</a></li>
		<shiro:hasPermission name="costbreakdowm:employerCostBreakdown:edit"><li><a href="${ctx}/costbreakdowm/employerCostBreakdown/form">雇主其它成本明细添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="employerCostBreakdown" action="${ctx}/costbreakdowm/employerCostBreakdown/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>国家id：</label>
				<sys:treeselect id="office" name="office.id" value="${employerCostBreakdown.office.id}" labelName="office.name" labelValue="${employerCostBreakdown.office.name}"
					title="部门" url="/sys/office/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
			</li>
			<li><label>企业编号：</label>
				<form:input path="company.Id" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>员工编号：</label>
				<form:input path="emploee.id" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>统计周期：</label>
				<form:input path="genDateStr" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
				<input id="btnExport" class="btn btn-primary" type="button" value="导出"/>
				<input id="btnImport" class="btn btn-primary" type="button" value="导入"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>国家id</th>
				<th>企业编号</th>
				<th>员工编号</th>
				<th>统计周期</th>
				<th>奖金</th>
				<th>税前调整</th>
				<th>雇员税</th>
				<th>雇主保险</th>
				<th>德国欠薪扣款</th>
				<th>培训费</th>
				<th>工会税</th>
				<th>员工退还押金</th>
				<th>税后扣减</th>
				<th>企业税</th>
				<th>雇主保险/super</th>
				<th>workcover</th>
				<th>美国商保</th>
				<th>残障金</th>
				<th>修改时间</th>
				<th>备注</th>
				<shiro:hasPermission name="costbreakdowm:employerCostBreakdown:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="employerCostBreakdown">
			<tr>
				<td><a href="${ctx}/costbreakdowm/employerCostBreakdown/form?id=${employerCostBreakdown.id}">
					${employerCostBreakdown.office.name}
				</a></td>
				<td>
					${employerCostBreakdown.company.Id}
				</td>
				<td>
					${employerCostBreakdown.emploee.id}
				</td>
				<td>
					${employerCostBreakdown.genDateStr}
				</td>
				<td>
					${employerCostBreakdown.bouns}
				</td>
				<td>
					${employerCostBreakdown.pretaxAdjustment}
				</td>
				<td>
					${employerCostBreakdown.employeeTax}
				</td>
				<td>
					${employerCostBreakdown.employerInsurance}
				</td>
				<td>
					${employerCostBreakdown.germanyArrears}
				</td>
				<td>
					${employerCostBreakdown.trainingFee}
				</td>
				<td>
					${employerCostBreakdown.tradeUnionTax}
				</td>
				<td>
					${employerCostBreakdown.staffRefundDeposit}
				</td>
				<td>
					${employerCostBreakdown.afterTaxDeduction}
				</td>
				<td>
					${employerCostBreakdown.corporateTax}
				</td>
				<td>
					${employerCostBreakdown.employerInsuranceSuper}
				</td>
				<td>
					${employerCostBreakdown.workcover}
				</td>
				<td>
					${employerCostBreakdown.usCommercialInsurance}
				</td>
				<td>
					${employerCostBreakdown.disabilityGold}
				</td>
				<td>
					<fmt:formatDate value="${employerCostBreakdown.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${employerCostBreakdown.remarks}
				</td>
				<shiro:hasPermission name="costbreakdowm:employerCostBreakdown:edit"><td>
    				<a href="${ctx}/costbreakdowm/employerCostBreakdown/form?id=${employerCostBreakdown.id}">修改</a>
					<a href="${ctx}/costbreakdowm/employerCostBreakdown/delete?id=${employerCostBreakdown.id}" onclick="return confirmx('确认要删除该雇主其它成本明细吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>